import { api, dataHandler } from 'utils/http';

const url = '/api/operator';

const addRelation = (data) => api.post(`${url}/relation`, data).then(dataHandler);
const userECNList = (userId) => api.get(`${url}/maintain/ECNs`, {
  params: {
    userId,
  },
}).then(dataHandler);

export {
  addRelation,
  userECNList,
};
